/*
*  Copyright 2019-2023 oyun
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/package com.oyun.modules.medicine.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.oyun.base.BaseEntity;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import java.sql.Timestamp;
import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
* @description /
* @author oyun
* @date 2024-04-29
**/
@Data
@TableName("pharmaceutical_company")
public class PharmaceuticalCompany extends BaseEntity implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "企业性质(字典)")
    private String nature;

    @ApiModelProperty(value = "旗县区的地区代码")
    private String areaCode;

    @TableField(exist = false)
    @ApiModelProperty(value = "供应医院id")
    private List<Long> hpIds;

    @ApiModelProperty(value = "药企名称")
    private String mnName;

    @ApiModelProperty(value = "mnNameCode")
    private String mnNameCode;

    @ApiModelProperty(value = "zhName")
    private String zhName;

    @ApiModelProperty(value = "企业所在地")
    private String mnLocation;

    @ApiModelProperty(value = "mnLocationCode")
    private String mnLocationCode;

    @ApiModelProperty(value = "zhLocation")
    private String zhLocation;

    @ApiModelProperty(value = "联系方式")
    private String contactInformation;

    @ApiModelProperty(value = "法人代表")
    private String mnLegalPerson;

    @ApiModelProperty(value = "mnLegalPersonCode")
    private String mnLegalPersonCode;

    @ApiModelProperty(value = "zhLegalPerson")
    private String zhLegalPerson;

    @ApiModelProperty(value = "蒙语研发药物")
    private String mnMedicine;

    @ApiModelProperty(value = "mnMedicineCode")
    private String mnMedicineCode;

    @ApiModelProperty(value = "zhMedicine")
    private String zhMedicine;

    @ApiModelProperty(value = "企业业务方向蒙古文")
    private String mnDirection;

    @ApiModelProperty(value = "mnDirectionCode")
    private String mnDirectionCode;

    @ApiModelProperty(value = "zhDirection")
    private String zhDirection;

    @ApiModelProperty(value = "占地面积")
    private String floorSpace;

    @ApiModelProperty(value = "占地面积单位（字典）")
    private String floorSpaceUnit;

    @ApiModelProperty(value = "简介蒙古文")
    private String mnIntro;

    @ApiModelProperty(value = "mnIntroCode")
    private String mnIntroCode;

    @ApiModelProperty(value = "zhIntro")
    private String zhIntro;

    @ApiModelProperty(value = "status")
    private Integer status;

    @ApiModelProperty(value = "备注")
    private String remark;

    @TableField(exist = false)
    @ApiModelProperty(value = "图片路径")
    private String image;

    public void copy(PharmaceuticalCompany source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
